package cn.the.angry.model;

import org.jbox2d.dynamics.World;
import cn.the.angry.physics.AngryCircle;
import cn.the.angry.resourcemanager.ResourceManager;

public class Pig extends CircleBaseElement {
	public Pig() {
		super(ResourceManager.getNormalPigImages(), false);
		getSprite().setOffset(0,1);
	}
	
	public void createPig(World world, float _x, float _y, float _density, float _friction
			   , float _restitution, float _radius){
		radius=15;
		circle = new AngryCircle(world, _x, _y, _density, _friction, _restitution, radius, this);
		setBinding(true);
		//getSprite().setActive(true);
		setWorld(world);
	}
}
